<template>
  <div id='ItemParams' v-if="Object.keys(itemparams).length !==0">
    <table v-for="item in itemparams.rule.tables">
      <tr v-for="tritem in item">
        <td v-for="tditem in tritem">{{tditem}}</td>
      </tr>
    </table>
    <table>
      <tr v-for="item in itemparams.info.set" class="item-tr">
        <td>{{item.key}}</td>
        <td>{{item.value}}</td>
      </tr>
    </table>
    <div>
      <div></div>
    </div>

  </div>
</template>

<script>
  export default {
    name: 'ItemParams',
    data() {
      return {}
    },
    props: {
      itemparams: {
        type: Object,
        default() { }
      }
    },
    created() {

    },


    components: {},
    methods: {},
  }
</script>

<style scoped>
  #ItemParams tr {
    border-bottom: 1px solid #555;
  }

  table {
    width: 100%;
    border-collapse: collapse;

  }

  table td:first-child {
    width: 60px;
    padding: 10px;
  }

  tr {
    margin: 10px;
  }
</style>